#include "server_initial.h"
#include "server_pthread.h"


int main()
{
    int sersock = sock_initial();
    if (sersock == -1)
    {
        return -1;
    }
    Data &main_data = Data::get_Data();
    while (1)
    {
        struct sockaddr_in clientaddr;
        socklen_t len = sizeof(clientaddr);
        int clientfd = accept(sersock, (sockaddr *)(&clientaddr), &len);
        if (clientfd == -1)
        {
            cout << "接收请求失败" << endl;
            continue;
        }
        // thread interfacet(/* 等待用户的登录或注册信息 */, )
    }
    




}